﻿using CefSharp.WinForms;
using DevExpress.XtraCharts;
using DevExpress.XtraEditors;
using Microsoft.Web.WebView2.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BW.Mes.WinForms.Workbench
{
    public partial class GetworkbenchForm : DevExpress.XtraEditors.XtraForm
    {
        

        public GetworkbenchForm(string url)
        {
            InitializeComponent();

            // 创建 ChromiumWebBrowser 控件
            var browser = new ChromiumWebBrowser(url);
            browser.Dock = DockStyle.Fill;

            // 添加到窗体
            this.Controls.Add(browser);
        }
        private void btnOpenDashboard_Click(object sender, EventArgs e)
        {
            // 你的Vue页面地址
            string vueUrl = "http://120.26.197.100:7093/workbench";
            var dialog = new GetworkbenchForm(vueUrl);
            dialog.ShowDialog();
        }


    }
}